export default {
	namespaced: true,
	state: () => ({
		orderInfo: {},
		goodsCount:'',
		addressList:[]
	}),
	mutations: {
		saveOrderInfo(state, orderInfo) {
			console.log(orderInfo,'orderInfo')
			state.orderInfo = orderInfo;
		},
		saveGoodsCount(state, goodsCount) {
			state.goodsCount = goodsCount;
		},
		saveAddressList(state, addressList) {
			// console.log()
			state.addressList = addressList;
		},
	},
	getters: {
	    orderInfo: state => state.orderInfo,
	    goodsCount: state => state.goodsCount,
		addressList:state=>state.addressList
	}
}